<template>
	<view class="housekeeper-list">
		<view class="item" v-for="(item,index) in list" :key="index" @click="clickFn(item)">
			<HousekeeperItem :housekeeper='item' />
		</view>
	</view>
</template>

<script>
	import HousekeeperItem from '@/components/housekeeper-item/housekeeper-item.vue'
	export default {
		components:{
			HousekeeperItem
		},
		props:{
			list:{
				type:Array,
				default:[]
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			clickFn(item){
				this.$emit('click',item)
			}
		}
	}
</script>

<style lang="scss">
.item{
	border-top: 1rpx solid #ccc;
}
</style>
